package hierarchy

import (
	"gitcode.com/G-YT/iHealth25/server/api/v1"
	"gitcode.com/G-YT/iHealth25/server/middleware"
	"github.com/gin-gonic/gin"
)

type FdArticleAudioRouter struct {
}

// InitFdArticleAudioRouter 初始化 FdArticleAudio 路由信息
func (s *FdArticleAudioRouter) InitFdArticleAudioRouter(Router *gin.RouterGroup, pubRouter *gin.RouterGroup) {
	fdArticleAudioRouter := Router.Group("fdArticleAudio").Use(middleware.OperationRecord())
	fdArticleAudioRouterPub := pubRouter.Group("fdArticleAudio")
	var fdArticleAudioApi = v1.ApiGroupApp.HierarchyApiGroup.FdArticleAudioApi
	{
		fdArticleAudioRouter.POST("createFdArticleAudio", fdArticleAudioApi.CreateFdArticleAudio)             // 新建FdArticleAudio
		fdArticleAudioRouter.DELETE("deleteFdArticleAudio", fdArticleAudioApi.DeleteFdArticleAudio)           // 删除FdArticleAudio
		fdArticleAudioRouter.DELETE("deleteFdArticleAudioByIds", fdArticleAudioApi.DeleteFdArticleAudioByIds) // 批量删除FdArticleAudio
		fdArticleAudioRouter.PUT("updateFdArticleAudio", fdArticleAudioApi.UpdateFdArticleAudio)              // 更新FdArticleAudio
		fdArticleAudioRouter.GET("like", fdArticleAudioApi.FdArticleLike)                                     // 喜欢Audio
		fdArticleAudioRouter.GET("collect", fdArticleAudioApi.FdArticleCollect)                               // 收藏Audio
	}
	{
		fdArticleAudioRouterPub.GET("findFdArticleAudio", fdArticleAudioApi.FindFdArticleAudio)       // 根据ID获取FdArticleAudio
		fdArticleAudioRouterPub.GET("getFdArticleAudioList", fdArticleAudioApi.GetFdArticleAudioList) // 获取FdArticleAudio列表
	}
}
